Hi Doug,
Thank you for the response, I should check back here more often for replies.
What kind of response does it require? does it need to be part of the rest message?
Here is a copy of one of our rest messages being sent and then process the results
//build & send REST message
try {
r = new sn_ws.RESTMessageV2(rmess, action);
r.setStringParameter('id', current.x_pd_integration_incident);
r.setStringParameter('priority_id', priority_id);
r.setStringParameter('email', gs.getProperty('pagerduty_service_account'));
r.setStringParameter('token', gs.getProperty('pagerduty_token'));
response = r.execute(); //Might throw exception if http connection timed out or some issue with sending request itself because of encryption/decryption of password.
responseBody = response.haveError() ? response.getErrorMessage() : response.getBody();
httpstatus = response.getStatusCode();
} catch (ex) {
responseBody = ex.getMessage();
} finally {
requestBody = r ? r.getRequestBody() : null;
}
//process REST response
if (response.haveError() == false) {
current.work_notes = "PagerDuty has been updated successfully";
}
Any pointers would be great
Kind Regards
Ashley